<div id="sidebar">

<?php if (get_option('swt_fcats') == 'Hide') { ?>
<?php { echo ''; } ?>
<?php } else { include(TEMPLATEPATH . '/includes/featured-cats.php'); } ?>

<?php if (get_option('swt_banners') == 'Hide') { ?>
<?php { echo ''; } ?>
<?php } else { include(TEMPLATEPATH . '/includes/banners.php'); } ?>

<?php
if ( function_exists('dynamic_sidebar') && dynamic_sidebar(6) ):else :

if(!function_exists('dynamic_sidebar')||!dynamic_sidebar()) :?>

    <div class="side-widget">
    <h3>页面</h3>
    <ul><?php wp_list_pages('title_li=' ); ?></ul>
    </div>

    <?php

 endif;

endif;
?>
</div>

<div id="sidebar2">
<div id="footer1">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) :
endif; ?>
</div>

<div id="footer2">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(3) ) : 
endif; ?>
</div>

<div id="footer3">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(4) ) :
endif; ?>
</div>

<div id="footer4">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(5) ) :
endif; ?>
</div>
<div id="footer5">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(7) ) :
endif; ?>
</div>
</div>